[NTG-context] Re: start/stopregister

2024-04-26 Thread Hans Hagen
On 4/26/2024 9:54 AM, Thomas A. Schmitz wrote: On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext     A\index{A} B \page     A\startregister [index] {A} B

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext A\index{A} B \page A\startregister [index] {A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\stopregister [index] {A} B\stopregister [index] [B] \page

[NTG-context] Re: start/stopregister

2024-04-25 Thread Hans Hagen
On 4/25/2024 4:51 PM, Taco Hoekwater wrote: On 25 Apr 2024, at 16:45, Thomas A. Schmitz wrote: On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can

[NTG-context] Re: start/stopregister

2024-04-25 Thread Taco Hoekwater
> On 25 Apr 2024, at 16:45, Thomas A. Schmitz > wrote: > > On 4/25/24 16:13, Henning Hraban Ramm wrote: >> I’m using it like >> \startregister[index][bibliografie]{Bibliografie} >> … >> \stopregister[index][bibliografie] >> i.e. very similar to your

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can confirm it doesn’t result in a page range in the index. Also gives no error. Since I've become

[NTG-context] Re: start/stopregister

2024-04-25 Thread Henning Hraban Ramm
but not in mkxl. All best Thomas \setuppapersize [A6] \starttext A\index{A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\index{A} B\stopregister [index] [B] \page \placeregister[index] \stoptext I’m using it like \startregister[index][bibliografie]{Bibliografie

[NTG-context] start/stopregister

2024-04-25 Thread Thomas A. Schmitz
] \starttext A\index{A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\index{A} B\stopregister [index] [B] \page \placeregister[index] \stoptext ___ If your question is of interest

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
d]{\bf #1}\autoinsertnextspace} … \startsection[title=Lists] \TODO{Research the options of \tex{setupitemgroup}!} \stopsection … \startchapter[title=Work list]   Sections that still need work.\blank  \placetodos \stopchapter So I get a prominent marker in the content and the title of the affected section a

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-14 Thread Jim
t currently work properly. This is > internally used by "\usepgfplotslibrary[colorbrewer]" among others. > See https://github.com/pgf-tikz/pgf/pull/1130 . > Thanks, > -- Max > diff --git a/tex/generic/pgf/utilities/pgfutil-context.def > b/tex/generic/pgf/utilities/p

[NTG-context] PDF, runner, and TikZ patches

2024-03-14 Thread Max Chernoff
erly. This is internally used by "\usepgfplotslibrary[colorbrewer]" among others. See https://github.com/pgf-tikz/pgf/pull/1130 . Thanks, -- Max diff --git a/tex/generic/pgf/utilities/pgfutil-context.def b/tex/generic/pgf/utilities/pgfutil-context.def index eddab09ab..66edb0980

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
ter many hours of trial-and-error, I was able to recreate the problem > in a minimum working example: > > file main.tex only contains: > > \starttext > >      \index{birds} >      \index{insects} > >      \input secondary > >      \placeindex > > \s

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
What is an anchor? Does that mean the index needs to me next to some items, like placed next to some text? On Wednesday, March 13, 2024 at 04:46:54 PM MDT, Wolfgang Schuster wrote: Joel via ntg-context schrieb am 13.03.2024 um 23:27: > After many hours of trial-and-error, I was a

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 13.03.2024 um 23:27: After many hours of trial-and-error, I was able to recreate the problem in a minimum working example: file main.tex only contains: \starttext     \index{birds}     \index{insects}     \input secondary     \placeindex \stoptext file

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
After many hours of trial-and-error, I was able to recreate the problem in a minimum working example: file main.tex only contains: \starttext     \index{birds}     \index{insects}          \input secondary          \placeindex      \stoptext file secondary.tex only contains:    \index

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
d as being present, so the index will still point to that particular page. This solution seems to be what's causing the [entry not flushed] error in the index. Is there another solution instead of startnointerferencethat will hide text or any content but still allow page references to link to

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
I have some custom registers that I use to index some information. When compiled, it just prints [entry not flushed] instead of printing some of the page numbers. I have tens of thousands of lines of code, so have no idea how to break the problem down to a minimal example. What does [entry

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
∑ tex error > tex error on line 85 in file ./IntroEstadísticaNP.tex: lua error: registered function call [250]: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: attempt to index a nil value (local 'a2') stack traceback: ...mtx/tex/texmf-context/

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
il.com>) escribió: > >> I keep bumping into this error, I have no idea what may be causing it, in >> a statistics book with lots of math: >> >> registered function call [250]: >> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to >>

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
onr...@gmail.com>) escribió: > I keep bumping into this error, I have no idea what may be causing it, in > a statistics book with lots of math: > > registered function call [250]: > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to > index a nil value (local

[NTG-context] Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
I keep bumping into this error, I have no idea what may be causing it, in a statistics book with lots of math: registered function call [250]: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to index a nil value (local 'a2') I have checked everything. I have tried

[NTG-context] Re: An announcement of my new book.

2024-02-13 Thread Peter Hopcroft via ntg-context
that is more of an index to the existing documentation that is not out of date, with perhaps some simple examples. One case that comes to mind is to pass a couple of numbers to Lua, have it do a calculation and use the result in Context. Regards, Peter > On 14/02/2024, at 9:03 AM, Sir Coleman via

[NTG-context] Re: chronological TOC

2024-01-30 Thread BPJ
the nineties I used numeric sort keys for a Sanskrit index where the letters were Latin (with lots of diacritics) but the sort order was Indic (a, ā, i, ī, ... k, kh, g, gh, ...). I assigned a two-digit "number" (01, 02, 03, ...) to each grapheme and the sort key consisted o

[NTG-context] Re: chronological TOC

2024-01-29 Thread jbf
it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017-04-29]{Speech, Panama City} to your chapter command

[NTG-context] Re: chronological TOC

2024-01-29 Thread Bruce Horrocks
er. How do I get the date >>> (e.g. 29 April 2017) to be the ordering factor in the list. I assume it >>> will be something to do with criterium, but am clueless at the moment on >>> how to indicate this. >> I don’t know if it works this way (the wizards will know

[NTG-context] Re: chronological TOC

2024-01-29 Thread Wolfgang Schuster
2017) to be the ordering factor in the list. I assume it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017

[NTG-context] Re: chronological TOC

2024-01-27 Thread Henning Hraban Ramm
it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017-04-29]{Speech, Panama City} to your chapter command

[NTG-context] Re: upload

2024-01-18 Thread Hans Hagen
, in the second case a prime symbol in a superscript; in lmtx we have for each nucleus a presubscript, presuperscript, subscript, superscript and primescript (plus index ones) Hans - Hans

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
pm and to --- doc/context/sources/general/manuals/units/units-mkiv.tex | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/context/sources/general/manuals/units/units-mkiv.tex b/doc/context/sources/general/manuals/units/units-mkiv.tex index d70c7221f..a1631aadb 100644 --- a

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
it will not be too pretty with such a large sub-index to the sum. > > There is also > > \sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack} > > which imitates the \substack command from latex. > > OT but it is better to use on

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to the sum. There is also \sum_{\startsubstack \NC a \NR \N

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
It works nicely. You are a lifesaver. Thanks a lot. On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Mikael Sundqvist
Hi, you can try something like \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} but it will not be too pretty with such a large sub-index to the sum. /Mikael On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal wrote: > > I have following formula > \sum_{k=0\\ k\equiv p +

[NTG-context] Re: font error in float placement?

2024-01-14 Thread Hans Hagen via ntg-context
Hi, to index a nil value (field 'embed') fixed in next upload (this merge upgrade is a bit work in progress) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

[NTG-context] font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
://yemaya.fiee.net/s/8TqwfcP7mLMmy9p (In a simple document it works.) Hraban """ lua error > lua error on line 516 in file de/c_feinheiten.tex: registered function call [1565]: ...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:596: attempt to index a nil value (fie

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-24 Thread Wolfgang Schuster
to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms    [abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-23 Thread Bruce Horrocks
'. (If you can't figure out why > I > needed to see a number, look up 'weird error' in the index to The TeXbook.) > mtx-context | fatal error: return code: 1 > > It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) > > > \definesynonyms

[NTG-context] \setupsynonyms textstyle=cap failing

2023-12-23 Thread Garulfo
' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms    [abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation] [textstyle=bold] \starttext \contextversion

[NTG-context] Re: xmlpos values doubled

2023-11-22 Thread Hans Hagen
, it seems that \xmlpos{#1} returns duplicate values. This might indeed be the intended meaning of \xmlpos{#1} as it seems related to the XML query foo/bar/index() which only looks up the position in the parent node. (I noticed that if I run this repeatedly, I get somehow different values from times

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
This might indeed be the intended meaning of \xmlpos{#1} as it seems related to the XML query foo/bar/index() which only looks up the position in the parent node. (I noticed that if I run this repeatedly, I get somehow different values from times to times. I can't say why.) Anyways, I was

[NTG-context] Problem with textstyle

2023-11-17 Thread Rik Kabel
Hello list, The following example does not compile, complaining “Missing number, treated as zero needed to see a number, look up 'weird error' in the index to The TeXbook”: \setuphead   [chapter] [   textstyle=cap

[NTG-context] Re: typearea

2023-10-29 Thread Thomas Meyer
see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 Line 89 in the module should be the problem. But how can I solve it? I think some lines in the module should be commented out. (An example directly in the module?) I thank you

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
=doublesided] 97 \starttext 98 \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} 99 \stoptext A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context |

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Hans Hagen
ase/mkxl/math-fnt.lmt:56: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Pablo Rodriguez
install-lmtx/context-linux-64.zip) and I got the same error again. Just in case it might help, Pablo PS: here is the error again: tex error > tex error on line 10 in file ./a.tex: lua error: run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: tab

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Mikael Sundqvist
} i = j \NR > \NC 0 \NC \text{otherwise} \NR > \stopmathcases > \stopformula > \stoptext > > The error is : > run callback [44]: > ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index > is nil\nstack traceback:\n > ...ext/tex/texmf-context/t

[NTG-context] Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Vincent Picard
\startformula \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases \stopformula \stoptext The error is : run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil\nstack traceback:\n ...ext/tex/texmf

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Hans Hagen
nnotations, instead of the name from EmbeddedFiles/Names in the target dictionary, it requires the keys P and A (as numbers or strings). P gives the page number which contains the file annotation: zero-based as number, or named destination as string. A gives the annotation: zero-based ind

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
s/Names in the target dictionary, it requires the keys P and A (as numbers or strings). P gives the page number which contains the file annotation: zero-based as number, or named destination as string. A gives the annotation: zero-based index of the annotation in the Annots array, or NM entry value fro

[NTG-context] Re: your opinion about list structures

2023-08-22 Thread denis.maier
t; long. I would probably hardly use it. > > Maybe it would be better to show only chapters (29 content + 12 appendix = 2 > pages) and include a list of sections after the chapter title (or not at all). > > [Registers] > > I split between command and topic index (9 pages each),

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
The error message is about line 276 in one of your included files but we need the content of the faulty file. To get the faulty file comment your input line until the error disappears, ensure to delete the tuc file (context --purge) because sometimes index/register entries are the problem

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Hans Hagen
st > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages >

[NTG-context] An error which is not in .log file

2023-08-15 Thread Xavier B.
'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 29

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
urrentTextSetCounter]% \setxvariable {concurrent} {text:\rawcountervalue[ConcurrentTextSetCounter]} {#1}} % Account for the counter incrementing twice and the index being 1-based. \def\ConcurrentTextGet{% \incrementnumber[ConcurrentTextGetCounter]% \getvariable {con

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
SetCounter]} {#1}} % Account for the counter incrementing twice and the index being 1-based. \def\ConcurrentTextGet{% \incrementnumber[ConcurrentTextGetCounter]% \getvariable {concurrent} {text:\number\numexpr1+\rawcountervalue[ConcurrentTextGetCounter]/2\relax}} \startuseMPgraph

[NTG-context] Re: xml: matches always child of other element

2023-08-10 Thread Hans Hagen via ntg-context
e the side effects (twice one versus 1/2) it's kind of hard to debug this, i admit, Hans %% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml:*} \xmlsetsetup{#1}{index-entry}{xml:i

[NTG-context] Re: your opinion about list structures

2023-08-10 Thread Keith McKay
inordinately long. [Registers] My own preference would be a command and a topic index if only for convenience sake. [Glossary] I don't think an index of abbreviations is necessary if they are already in the index. [Other Lists] I don't think a list of colours is necessary, you could just point

[NTG-context] your opinion about list structures

2023-08-10 Thread Henning Hraban Ramm
the chapter title (or not at all). [Registers] I split between command and topic index (9 pages each), because I find it annoying to have the commands between the topics. I also include the topics that are mentioned in titles in the index, because I hate it if I must look in two places. (Otherwise I

[NTG-context] Re: xml: matches always child of other element

2023-07-27 Thread denis.maier
), but I'd still be interested in understanding what is happening here. Does anyone know? Or is there anything I'm doing wrong here? Best, Denis %% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml

[NTG-context] Problems with luametatex and texlive on OpenBSD

2023-07-27 Thread Edd Barrett
: attempt to index a nil value (local 'nodecodes') (full log below) As far as I can see, I've set up the system in the same way as the other downstream packagers have (according to https://github.com/contextgarden/luametatex/issues/1 and https://wiki.contextgarden.net/Building_LuaMetaTeX_for_TeX_Live

[NTG-context] Re: xml: matches always child of other element

2023-07-24 Thread denis.maier
Interestingly, we should be in the right subtree as this modified example is supposed to demonstrate (we're getting the correct numbers under each index-entry-term, just the terms are incorrect in all but the first case): \startxmlsetups xml:test \xmlsetsetup{#1

[NTG-context] xml: matches always child of other element

2023-07-24 Thread denis.maier
\startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml:*} \xmlsetsetup{#1}{index-entry}{xml:index-entry} %\xmlsetsetup{#1}{index-entry}{xml:index-entry-2} \xmlsetsetup{#1}{term}{xml:index-entry-term

[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
n here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 signature.asc Description: Message signed wit

[NTG-context] mtxrun scripts

2023-07-18 Thread Henning Hraban Ramm
I tried some of the mtxrun scripts: * "colors" runs into an error: $ mtxrun --script colors --table ~/texmf/colors/icc/profiles/sgray.icc lua error : function call: ...-07/tex/texmf-context/scripts/context/lua/mtx-colors.lua:56: attempt to index a nil value (global 'colors')

[NTG-context] Re: problem with symbols in index

2023-07-18 Thread Floris van Manen via ntg-context
On 17/07/2023 23:37, Henning Hraban Ramm wrote: Also, "context --purge" doesn’t delete the tuc file (don’t know if that changed), so the wrong entry stuck in there, and my code changes didn’t affect it. not does it remove the log file

[NTG-context] problem with symbols in index

2023-07-17 Thread Henning Hraban Ramm
I hunted for two days after an index error in my book: """ structure > sectioning > chapter @ level 2 : 0.1 -> Sachregister tex error > tex error on line 95 in file ./prd_test.tex: The file ended when scanning an argument. {\startregisterentrie

[NTG-context] Re: access image properties in Lua

2023-07-17 Thread Alan Braslau via ntg-context
{filename = figures.current().status.fullname} if I understand this right, "img" isn’t valid anymore: """ token call, execute: grph-imagelib.lua:37: attempt to index a nil value (global 'img') """ I’d like to know the pixel size and if possible also the

[NTG-context] Re: access image properties in Lua

2023-07-13 Thread Hans Hagen
} if I understand this right, "img" isn’t valid anymore: """ token call, execute: grph-imagelib.lua:37: attempt to index a nil value (global 'img') """ I’d like to know the pixel size and if possible also the scaled target size of an image; either the &q

[NTG-context] access image properties in Lua

2023-07-11 Thread Henning Hraban Ramm
sn’t valid anymore: """ token call, execute: grph-imagelib.lua:37: attempt to index a nil value (global 'img') """ I’d like to know the pixel size and if possible also the scaled target size of an image; either

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-05 Thread Gerben Wierda
  | fatal error in file '/System/Library/Fonts/SFCompactRounded.ttf': ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to index a nil value (field '?')stack traceback: ...-64/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'index' ...-64/tex/texmf-context/te

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
otf, lmroman10-italic.otf, lmroman10-regular.otf >> >> >> Erase cache, regenerate formats, reload fonts (force) does give another >> (probably unrelated) error: >> >> fonts | names | identifying system font files with suffix 'ttf' >> fonts

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
obbing path '/Library/Fonts/**.ttf' > fonts | names | globbing path '/System/Library/Fonts/**.ttf' > otf reader | fatal error in file > '/System/Library/Fonts/SFCompactRounded.ttf': > ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to > inde

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
/Library/Fonts/**.ttf' otf reader | fatal error in file '/System/Library/Fonts/SFCompactRounded.ttf': ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to index a nil value (field '?') stack traceback: ...-64/tex/texmf-context/tex/context/base/mkiv/font-otr

Re: [NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
Am 27.06.23 um 21:01 schrieb Wolfgang Schuster via ntg-context: Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Someth

Re: [NTG-context] expansion of section title

2023-06-27 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end of the book \chapter

[NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
I think I had a good idea how to keep an overview of the “todos” in my book project: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end o

[NTG-context] [ error installing fresh lmtx]

2023-05-29 Thread vm via ntg-context
oading file '/home/vm/context/tex/texmf-context/tex/context/base/mkiv/lxml-tab.lua' succeeded ...ext/tex/texmf-context/tex/context/base/mkiv/lxml-lpt.lua:64: attempt to index a nil value (local 'xml') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/lxml-lpt.lua:64: in local

[NTG-context] dirty tricks

2023-05-28 Thread Hans Hagen via ntg-context
\samplefile{ward} % let's see what their demerits are {\tt \the\lousiness} % and overload one of them (index 11) \hsize8cm \silliness 11 \samplefile{ward} % do how about overloading more (index 11 and 8) \hsize8cm \lousiness 2 11 0 8 200 \samplefile{ward} \stoptext

Re: [NTG-context] Noto Emoji COLRv1

2023-05-24 Thread Hans Hagen via ntg-context
otf reader > unsupported colr type 2 paint format %i otf reader > fatal error in file 'Noto-COLRv1.ttf': ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in me

[NTG-context] Noto Emoji COLRv1

2023-05-23 Thread Max Chernoff via ntg-context
> fatal error in file 'Noto-COLRv1.ttf': ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'newindex' ...ext/tex/texmf-context/tex/context/base

[NTG-context] position in xmlfilter

2023-05-22 Thread Hans van der Meer via ntg-context
[] i.e. returns nothing expecting a number return=[\xmlfilter{#1}{../index()}] returns [0] expecting a number larger than 0 return=[\xmlfilter{#1}{./index()}] returns [0] expecting a number larger than 0 dr. Hans van der Meer

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Alan Braslau via ntg-context
On Mon, 15 May 2023 01:37:53 + (UTC) Joel via ntg-context wrote: > Such a way would make it so \index{dogs} places an entry for "dog" > under "d" and "animals --> dogs" under "a". Might I suggest that an alternate way of handling this could

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Alan Braslau via ntg-context
On Mon, 15 May 2023 09:40:22 +0200 Hans Hagen via ntg-context wrote: > \starttexdefinition tolerant protected IndexB[#1]#:#*#2 > \index{#2} > \doloopoverlist {#1} { > \index{##1+#2} > } > \stoptexdefinition Awesome! However, I think that Joel was look

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Hans Hagen via ntg-context
On 5/15/2023 3:37 AM, Joel via ntg-context wrote: I have a document like this:     \starttext     \index{dogs}     \index{cats}     \index{flowers}     \index{snails}     \index{trees}     \placeindex     \stoptext As I understand, if you use \index

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Henning Hraban Ramm via ntg-context
Am 15.05.23 um 03:37 schrieb Joel via ntg-context: I have a document like this:     \starttext     \index{dogs}     \index{cats}     \index{flowers}     \index{snails}     \index{trees}     \placeindex     \stoptext As I understand, if you use \index

[NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-14 Thread Joel via ntg-context
I have a document like this:     \starttext     \index{dogs}          \index{cats}          \index{flowers}          \index{snails}          \index{trees}          \placeindex          \stoptext      As I understand, if you use \index{animals+dogs

Re: [NTG-context] How to print all pages for a single index entry?

2023-05-07 Thread Alan Braslau via ntg-context
On Sun, 7 May 2023 22:26:12 + (UTC) Joel via ntg-context wrote: > I have an index like this: > > \starttext > \index{butterflies}\index{horses}\index{cows} > \placeindex > > \stoptext > The placeindex will place every index. > Is there a way to say,

[NTG-context] How to print all pages for a single index entry?

2023-05-07 Thread Joel via ntg-context
I have an index like this: \starttext \index{butterflies}\index{horses}\index{cows} \placeindex \stoptext The placeindex will place every index. Is there a way to say, display an index, but only for a specific single entry, or specific list of entries, e.g. \placeindex[horses, cows] (would

[NTG-context] How to fix indexes displaying [entry not flushed] with hidden data?

2023-05-07 Thread Joel via ntg-context
2. \setbox\scratchbox=\vbox{} These both successfully seem to place the data there, without it actually being visible and bibliograhy entries still function fine. The problem is, index and customer registers are getting confused: When one goes to render the page numbers in \placeindex, it gets confused,

Re: [NTG-context] cannot generate format file with current latest

2023-05-01 Thread Pablo Rodriguez via ntg-context
, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index >> a nil value (global 'posit') stack traceback: > > you're running the wrong binary Many thanks for your reply, Hans. I’m afraid I had to update the binaries manually. After that,

Re: [NTG-context] cannot generate format file with current latest

2023-04-30 Thread Hans Hagen via ntg-context
lowing error message: lua error > lua error on line 645 in file context.mkxl: token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index a nil value (global 'posit') stack traceback: you're r

Re: [NTG-context] cannot generate format file with current latest

2023-04-30 Thread Bruce Horrocks via ntg-context
file with "context --make --all", I get > the following error message: > > lua error > lua error on line 645 in file context.mkxl: > > token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index > a nil value (global 'posit') stack traceback: >

[NTG-context] cannot generate format file with current latest

2023-04-30 Thread Pablo Rodriguez via ntg-context
45 in file context.mkxl: token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index a nil value (global 'posit') stack traceback: ...ext/base/mkxl/cldf-pos.lmt:18: in local 'code' ...ext/base/mkiv/util-lua.lua:96: in field 'loadedluacode' ...ext/base/mkiv/lua

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
.last]lsr := vlist[nfrom]arc[vlist[nfrom]arc.last]lsr; fi nfrom := nto; endfor enddef; vardef handle_line_style (suffix sty) (expr name) = if valid_style name: sty := name; else: errhelp "feynmf: your linestyle is not recognizable, " & &qu

Re: [NTG-context] attempt to index nil value with bidi math in hbox

2023-04-03 Thread Hans Hagen via ntg-context
-duc.lmt:618: attempt to index a nil value (local 'before') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: in upvalue 'resolve_weak' ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:781: in upvalue 'resolve_levels

[NTG-context] attempt to index nil value with bidi math in hbox

2023-04-02 Thread Max Chernoff via ntg-context
Hi Hans, This test file: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$-TeX} \stoptext gives the following error: callback error: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to index a nil value (local 'before

[NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
nts > 'fallback modern rm 12pt' is loaded lua error > lua error on line 8 in file ./test.tex: registered function call [809]: ...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: attempt to index a nil value (local 'd') stack traceback: ...ext/tex/texmf-c

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
Fantastic! Exactly what I needed. My publisher was gong to ask for the information of this index soon, so its great that already works! --Joel On Sunday, February 26, 2023 at 11:45:48 AM MST, Alan Braslau wrote: Hans needs to confirm, "In the next update..." Test f

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
Hans needs to confirm, "In the next update..." Test files (MWEs): % index-1.tex \setupinteraction[state=start] \starttext test \index{entryWB.1} \page empty \page test \index{another WB.1} \page empty \page test \index{onemore WB.1} \page empty \page test \inde

Re: [NTG-context] How to add data from another PDF in index?

2023-02-24 Thread Alan Braslau via ntg-context
: > I am making a textbook and workbook set. > I have this custom index using this code, in both the textbook and > workbook: % > \defineregister[learnedshort][compress=yes] > \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, > pagenumber=yes, indicator=no] %

  1   2   3   4   5   6   7   8   9   10   >